<?php
require_once 'libs/auth.class.php';
require_once 'libs/mysql.class.php';


$conn = new Mysql();
$auth = new Auth();

/*if ( !$auth->is_connected() ) {
	header('Location: login.php');
	exit();
}*/

require_once 'libs/Twig/Autoloader.php';
Twig_Autoloader::register();

$loader = new Twig_Loader_Filesystem('templates');
$twig = new Twig_Environment($loader, array(
		/*'cache' => '/path/to/compilation_cache',*/
));

$tplVars = array();



$tplVars['jsFiles'] = array(
    'bootstrap/js/jquery.min.js',
    'bootstrap/js/jquery.ui.custom.js',
    'bootstrap/js/bootstrap.min.js',
    'bootstrap/js/jquery.validate.js',
    'bootstrap/js/jquery.wizard.js',
    'bootstrap/js/unicorn.js',
    'bootstrap/js/unicorn.wizard.js',

    'bootstrap/js/jquery.uniform.js',
    'bootstrap/js/select2.min.js',
    'bootstrap/js/unicorn.form_validation.js',
);

echo $twig->render('installer.twig', $tplVars);